package com.gxa.shop.service.address.impl;

import com.gxa.shop.bean.dto.AddressQDto;
import com.gxa.shop.bean.pojo.Address;
import com.gxa.shop.bean.vo.AddressQ;
import com.gxa.shop.dao.address.AddressDao;
import com.gxa.shop.dao.address.impl.AddressDaoImpl;
import com.gxa.shop.service.address.AddressService;

import java.util.List;

public class AddressServiceImpl implements AddressService {
    AddressDao addressDao=new AddressDaoImpl();
    @Override
    public int addAddress(Address address) {
        return addressDao.addAddr(address);
    }

    @Override
    public int deleteAddress(Integer id) {
        return addressDao.deleteAddr(id);
    }

    @Override
    public int updateAddress(Address address) {
        return addressDao.updateAddr(address);
    }

    @Override
    public int selectAddress(Address addr) {
        return 0;
    }

//    前端
    @Override
    public List<AddressQ> selectAddr(Integer id) {
        return addressDao.selectAddr(id);
    }
}
